package com.zynn.common.pojo.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.zynn.common.pojo.dto.user.UserDTO;
import com.zynn.common.pojo.dto.user.UserDataDTO;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 学校话题
 * </p>
 *
 * @author 刘猛
 * @since 2018-10-25
 */
@Data
public class SchoolTopicDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    /**
     * 用户
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long userId;

    /**
     * 上榜动态id
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long eventId;

    /**
     * 学校id
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long schoolId;
    /**
     * 背景图片
     */
    private String backgroudUrl;
    /**
     * 话题内容
     */
    private String topicContent;

    /**
     * 话题参与人数
     */
    private Integer joinCount;

}
